package com.ygqh.baby.mapper;
import com.ygqh.baby.po.KsdOrder;
import com.ygqh.baby.po.KsdOrderExample;
import com.ygqh.baby.ao.OrderStatus;
import com.ygqh.baby.ao.QueryInfo;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
public interface KsdOrderMapper {
    int countByExample(KsdOrderExample example);

    int deleteByExample(KsdOrderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(KsdOrder record);

    int insertSelective(KsdOrder record);

    List<KsdOrder> selectByExample(KsdOrderExample example);

    KsdOrder selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") KsdOrder record, @Param("example") KsdOrderExample example);

    int updateByExample(@Param("record") KsdOrder record, @Param("example") KsdOrderExample example);

    int updateByPrimaryKeySelective(KsdOrder record);

    int updateByPrimaryKey(KsdOrder record);
    
    int countSuper(@Param ("q") String q,@Param ("startDate") Date startDate,@Param ("endDate") Date endDate,@Param ("orderStatus")OrderStatus orderStatus);
    
    List<KsdOrder> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q,@Param ("startDate") Date startDate,@Param ("endDate") Date endDate,@Param ("orderStatus")OrderStatus orderStatus);

	List<Map<String, Object>> findOrderDetail(@Param("orderId")Long orderId);

	List<Map<String, Object>> findOrderReport(@Param ("q") String q,@Param ("startDate") Date startDate,@Param ("endDate")Date endDate,@Param ("orderStatus") OrderStatus orderStatus);
    
}



